<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../dist/style/css/base.css">
    <script>
        var deviceWidth = document.documentElement.clientWidth;
        if (deviceWidth > 640) deviceWidth = 640;
        document.documentElement.style.fontSize = deviceWidth / 7.5 + 'px';
    </script>
</head>

<body>

    <div class="warp h">
        <!--header-->
        <header class="hd">
            <a href="#123" class="l-icon only-icon">
            <i class="iconfont icon-left1"></i>            
            
        </a>

            <p class="tit2">
                订单填写
            </p>

        </header>
        <div class="order-address sel">
            <a href="#111">
                <div class="l">
                    <i class="iconfont icon-shouhuodizhi"></i>
                </div>
                <div class="r">
                    <p>收货人：王小二 18828881888</p>
                    <p>收货人：广东深圳南山区南新路多少号啥楼啥 号哈哈哈</p>
                </div>

                <i class="icon iconfont icon-left"></i>

            </a>
        </div>

        <div class="pay-bar border-none">
            <ul>
                <li class="tit">支付方式</li>
              
                <li>
                    <a href="#11" class="sel-pay">
                        <span class="l"><i class="iconfont icon-zhifu"></i>支付宝</span>
                        <span class="radio">
                            <i class="iconfont myicon "></i>
                        </span>
                    </a>
                </li>
                  <li>
                    <a href="#11"  class="sel-pay">
                        <span class="l"><i class="iconfont icon-ananzuiconv267"></i>微信</span>
                        <span class="radio">
                            <i class="iconfont myicon icon-gou"></i>
                        </span>
                    </a>
                </li>
            </ul>
        </div>

        <ul class="order-list">
            <li>
                <div class="line-box"></div>
                <div class="order-itme">
                    <div class="order-box-1">
                        <div class="l">
                            <img src="../dist/images/pro_2.jpg" alt="">
                        </div>
                        <div class="r">
                            <p class="tit">
                                血糖仪
                            </p>
                            <p class="ms-tit">
                                颜色分类：黄色；
                            </p>
                            <p class="price-num">
                                <span>¥</span>699
                                <span class="num">x1</span>
                            </p>
                        </div>
                    </div>
                    <div class="order-box-2">
                        <span class="r">
                            快递&nbsp;&nbsp;&nbsp;<span>免邮</span>
                        </span>
                        <span class="l">
                            配送方式
                        </span>

                    </div>
                    <div class="order-box-2">
                        <span class="tit">买家备注：</span>
                        <input class="remarks" type="text" placeholder="选填，对本次交易订单的说明">

                    </div>
                </div>
            </li>
            <li>
                <div class="line-box"></div>
                <div class="order-itme">
                    <div class="order-box-1">
                        <div class="l">
                            <img src="../dist/images/pro_2.jpg" alt="">
                        </div>
                        <div class="r">
                            <p class="tit">
                                血糖仪
                            </p>
                            <p class="ms-tit">
                                颜色分类：黄色；
                            </p>
                            <p class="price-num">
                                <span>¥</span>699
                                <span class="num">x1</span>
                            </p>
                        </div>
                    </div>
                    <div class="order-box-2">
                        <span class="r">
                            快递&nbsp;&nbsp;&nbsp;<span>免邮</span>
                        </span>
                        <span class="l">
                            配送方式
                        </span>

                    </div>
                    <div class="order-box-2">
                        <span class="tit">买家备注：</span>
                        <input class="remarks" type="text" placeholder="选填，对本次交易订单的说明">

                    </div>
                </div>
            </li>
        </ul>


        <div class="line-box"></div>


        <div class="pd-box"></div>
        <div class="sub-order-ft">
            <div class="pricesum">
                合计: <span>¥899.00</span>
            </div>
            <a class="sub-btn">
                提交订单
            </a>
        </div>



    </div>

    <script src="../dist/js/base.js"></script>

    <script>
        // 矫正rem
        function correctrem() {
            var rem_full_width = $("<div id='rem-test' style='width:7.5rem'></div>").appendTo($('body')).width();
            var device_width = Math.min(document.documentElement.clientWidth, 640);
            if (rem_full_width !== device_width) {
                document.documentElement.style.fontSize = (device_width / 7.5) * (device_width / rem_full_width) + 'px';
            }
            $('#rem-test').remove();
        }
        correctrem();
        $(function () {
             $(".sel-pay").hammer().bind("tap", function (ev) {
                 var $this_i = $(this).find('.radio i');   
                 console.log($this_i.hasClass("icon-gou"))              
                 if(!$this_i.hasClass("icon-gou")){
                    $(".radio i").removeClass("icon-gou");
                    $this_i.addClass("icon-gou");
                 }
                  
             });
        })
    </script>

</body>

</html>